<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script>
$("#list").jqGrid({  
    datatype : function(postdata) {  
        postdata = mergeObject(jsonCondition, postdata);  
          
        jQuery.ajax({  
            type : 'POST',  
            contentType : 'application/json',  
            url : ROOT_PATH + '/customer/search.do',  
            data : JSON.stringify(postdata),  
            dataType : 'json',  
            success : function(resp) {  
                if (resp.successed) {  
                    var thegrid = jQuery("#list")[0];  
                    thegrid.addJSONData(resp.returnObject);  
                } else {  
                    alert(resp.errors[0].message);  
                }  
            },  
            error : ajaxFailed  
        });  
    },  
    height : '100%',  
    rowNum : '10',  
    jsonReader : {  
        repeatitems: false  
    },  
    colNames : ['menuName', 'menuUri', 'remark'],  
    colModel : [   
               {name:'menuName', index:'menuName', width:80},   
               {name:'menuUri', index:'menuUri', width:256},  
               {name:'remark', index:'remark', width:256},  
               
             ],  
    pager : '#pager'  
});  
</script>
</head>

<body>
	<div class="container-fluid">
	<div class="row-fluid">
		
		<div class="span9">

				<table class="table table-striped table-bordered table-hover table-condensed">
					<tr>
						<th>Menu Name</th>
						<th>Menu URI</th>
						<th>Remark</th>
					</tr>
					<s:iterator value="menuList">
						<tr>
							<td><s:property value="menuName"/></td>
							<td><s:property value="menuUri"/></td>
							<td><s:property value="remark"/></td>
						</tr>
					</s:iterator>

				</table>
				
		</div>
	</div>
</div>
	
	
</body>
</html>